package com.platform.controller.backend;

import com.platform.base.BaseController;
import com.platform.common.ServerResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 搜索引擎控制层
 */
@RestController
@RequestMapping("/baseController/")
public class BigFieldController extends BaseController {

    /**
     * 同步数据建立索引
     * @return
     */
    @GetMapping("synTextSolr.do")
    public ServerResponse<String> synTextSolr(@RequestParam Map paramMap) {
        return iBigFieldService.synTextSolr(paramMap);
    }

}
